{# 项目信息 #}
{% with am_info=project.am_info %}
<li>
    <details open>
        <summary>
            <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="tw:size-4">
                <path fill-rule="evenodd" d="M5.625 1.5c-1.036 0-1.875.84-1.875 1.875v17.25c0 1.035.84 1.875 1.875 1.875h12.75c1.035 0 1.875-.84 1.875-1.875V12.75A3.75 3.75 0 0 0 16.5 9h-1.875a1.875 1.875 0 0 1-1.875-1.875V5.25A3.75 3.75 0 0 0 9 1.5H5.625ZM7.5 15a.75.75 0 0 1 .75-.75h7.5a.75.75 0 0 1 0 1.5h-7.5A.75.75 0 0 1 7.5 15Zm.75 2.25a.75.75 0 0 0 0 1.5H12a.75.75 0 0 0 0-1.5H8.25Z" clip-rule="evenodd" />
                <path d="M12.971 1.816A5.23 5.23 0 0 1 14.25 5.25v1.875c0 .207.168.375.375.375H16.5a5.23 5.23 0 0 1 3.434 1.279 9.768 9.768 0 0 0-6.963-6.963Z" />
            </svg>
            {% trans '项目信息' %}
        </summary>
        <ul>
            <li>
                <details open>
                    <summary>
                        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="tw:size-4">
                            <path d="M5.625 3.75a2.625 2.625 0 1 0 0 5.25h12.75a2.625 2.625 0 0 0 0-5.25H5.625ZM3.75 11.25a.75.75 0 0 0 0 1.5h16.5a.75.75 0 0 0 0-1.5H3.75ZM3 15.75a.75.75 0 0 1 .75-.75h16.5a.75.75 0 0 1 0 1.5H3.75a.75.75 0 0 1-.75-.75ZM3.75 18.75a.75.75 0 0 0 0 1.5h16.5a.75.75 0 0 0 0-1.5H3.75Z" />
                        </svg>
                        {% trans '项目立项' %}
                    </summary>
                    <ul>
                        {% include './detail-entry-1.html' with s='information' r=0 u0='project:detail' u1=project.id t='项目基本信息' a=am_info.1.Project no_text=True%}
                        {% include './detail-entry-1.html' with s='plan' r=0 u0='project:plan/list' u1=project.id t='项目方案' a=am_info.1.Plan no_text=True %}
                        {% include './detail-entry-1.html' with s='initiation' r=0 u0='project:initiation/list' u1=project.id t='立项资料' a=am_info.1.InitiationData no_text=True %}
                    </ul>
                </details>
            </li>
            
            {% include './detail-entry-1.html' with s='ethical_review' r=3 u0='project:ethical_review' u1=project.id t='伦理审查' %}
            {% include './detail-entry-1.html' with s='human_genetic_resource' r=3 u0='project:human_genetic_resource' u1=project.id t='人遗申请' %}
            {% include './detail-entry-1.html' with s='contract' r=3 u0='project:contract/list' u1=project.id t='合同签署' %}
        </ul>
    </details>
</li>


{# 项目实施 #}
<li {% if am_info.0.1 < 3 %}class="tw:menu-disabled"{% endif %}>
    <details open>
        <summary>
            <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="tw:size-4">
                <path fill-rule="evenodd" d="M12 5.25c1.213 0 2.415.046 3.605.135a3.256 3.256 0 0 1 3.01 3.01c.044.583.077 1.17.1 1.759L17.03 8.47a.75.75 0 1 0-1.06 1.06l3 3a.75.75 0 0 0 1.06 0l3-3a.75.75 0 0 0-1.06-1.06l-1.752 1.751c-.023-.65-.06-1.296-.108-1.939a4.756 4.756 0 0 0-4.392-4.392 49.422 49.422 0 0 0-7.436 0A4.756 4.756 0 0 0 3.89 8.282c-.017.224-.033.447-.046.672a.75.75 0 1 0 1.497.092c.013-.217.028-.434.044-.651a3.256 3.256 0 0 1 3.01-3.01c1.19-.09 2.392-.135 3.605-.135Zm-6.97 6.22a.75.75 0 0 0-1.06 0l-3 3a.75.75 0 1 0 1.06 1.06l1.752-1.751c.023.65.06 1.296.108 1.939a4.756 4.756 0 0 0 4.392 4.392 49.413 49.413 0 0 0 7.436 0 4.756 4.756 0 0 0 4.392-4.392c.017-.223.032-.447.046-.672a.75.75 0 0 0-1.497-.092c-.013.217-.028.434-.044.651a3.256 3.256 0 0 1-3.01 3.01 47.953 47.953 0 0 1-7.21 0 3.256 3.256 0 0 1-3.01-3.01 47.759 47.759 0 0 1-.1-1.759L6.97 15.53a.75.75 0 0 0 1.06-1.06l-3-3Z" clip-rule="evenodd" />
            </svg>
            {% trans '项目实施' %}
        </summary>
        <ul>
            <li {% if am_info.0.1 < 3 %}class="tw:menu-disabled"{% endif %}>
                <details open>
                    <summary>
                        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="tw:size-4">
                            <path d="M5.625 3.75a2.625 2.625 0 1 0 0 5.25h12.75a2.625 2.625 0 0 0 0-5.25H5.625ZM3.75 11.25a.75.75 0 0 0 0 1.5h16.5a.75.75 0 0 0 0-1.5H3.75ZM3 15.75a.75.75 0 0 1 .75-.75h16.5a.75.75 0 0 1 0 1.5H3.75a.75.75 0 0 1-.75-.75ZM3.75 18.75a.75.75 0 0 0 0 1.5h16.5a.75.75 0 0 0 0-1.5H3.75Z" />
                        </svg>
                        {% trans '启动前准备' %}
                    </summary>
                    <ul>
                        <li>
                            {% include './detail-entry-1.html' with s='before_implement' r=3 u0='project:before_implement' u1=project.id t='概览' a=am_info.1.BeforeImplement no_text=True %}
                            {% include './detail-entry-1.html' with s='material' r=3 u0='project:material/list' u1=project.id t='物资管理' %}
                        </li>
                    </ul>
                </details> 
            </li>
            
            {% include './detail-entry-1.html' with s='beginning' r=4 u0='project:beginning' u1=project.id t='启动' %}
            {% include './detail-entry-1.html' with s='implement' r=4 u0='project:implement' u1=project.id t='入组' a=am_info.1.Implement no_text=True %}
            {% include './detail-entry-1.html' with s='quality_control' r=5 u0='project:quality_control/list' u1=project.id t='质控' %}
            {% include './detail-entry-1.html' with s='finish' r=5 u0='project:finish' u1=project.id t='结束' a=am_info.1.Finish no_text=True %}
        </ul>
    </details>
</li>

{# 项目验收 #}
<li {% if am_info.0.1 < 6 %}class="tw:menu-disabled"{% endif %}>
    <details open>
        <summary>
            <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="tw:size-4">
                <path fill-rule="evenodd" d="M9 1.5H5.625c-1.036 0-1.875.84-1.875 1.875v17.25c0 1.035.84 1.875 1.875 1.875h12.75c1.035 0 1.875-.84 1.875-1.875V12.75A3.75 3.75 0 0 0 16.5 9h-1.875a1.875 1.875 0 0 1-1.875-1.875V5.25A3.75 3.75 0 0 0 9 1.5Zm6.61 10.936a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 14.47a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z" clip-rule="evenodd" />
                <path d="M12.971 1.816A5.23 5.23 0 0 1 14.25 5.25v1.875c0 .207.168.375.375.375H16.5a5.23 5.23 0 0 1 3.434 1.279 9.768 9.768 0 0 0-6.963-6.963Z" />
            </svg>
            {% trans '项目验收' %}
        </summary>
        <ul>
            {% include './detail-entry-1.html' with s='examination' r=6 u0='project:examination/list' u1=project.id t='现场检查' %}

            {# haven't implemented yet #}
            {% include './detail-entry-0.html' with r=10000 u='project:create' t='工作量计算' %}
        </ul>
    </details>
</li>

{% endwith %}
